﻿using System;
using System.ComponentModel.Composition;

namespace Xcapp
{
    /// <summary>
    /// Specifies the Operation Key attribute.
    /// </summary>
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class)]
    public class OperationKeyAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OperationKeyAttribute"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        public OperationKeyAttribute(string key)
        {
            this.Key = key;
        }

        /// <summary>
        /// Gets or sets the key.
        /// </summary>
        /// <value>
        /// The key.
        /// </value>
        public string Key { get; set; }
    }
}